home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / PartMaker 4.4 / PartMaker Documents / Script Runner• / Script Runner•.rsrc / dFRK_5035 < prev    next >
Encoding:
Text File  |  1995-12-12  |  9.0 KB  |  332 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: Orbit:SampleCode:ScriptRunner:OSAPlugIn:ScriptRunnerAgent.xih.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxih.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_Sample_ScriptRunnerAgent_xih
  11. #define SOM_Sample_ScriptRunnerAgent_xih
  12.  
  13. #include <somcls.xh>
  14. #include <somcm.xh>
  15.  
  16. #ifndef SOM_Sample_ScriptRunnerAgent_xh
  17. #include <ScriptRunnerAgent.xh>
  18. #endif
  19.  
  20. /*
  21.  * Set the scope of methods functions
  22.  */
  23. #ifndef SOM_Scope
  24. #define SOM_Scope extern "C"
  25. #endif
  26.  
  27. #define Sample_ScriptRunnerAgent_MaxNoMethods 1
  28.  
  29. /*
  30.  * -- Instance Data
  31.  */
  32.  
  33. /*
  34.  * -- Use best possible alignment for instance data slice.
  35.  */
  36. #if powerc
  37. #  pragma options align=power
  38. #endif
  39. typedef struct {
  40.     ODID fScriptRunnerID;
  41. } Sample_ScriptRunnerAgentData;
  42. #if powerc
  43. #  pragma options align=reset
  44. #endif
  45.  
  46. /*
  47.  * -- Getdata Macro
  48.  */
  49.  
  50. /*
  51.  * -- This emitter treats Data Tokens as Thunks by default.
  52.  * -- Use the sc modifier "nothunks" to override this default.
  53.  */
  54. SOMEXTERN typedef Sample_ScriptRunnerAgentData* (* SOMLINK somTD_Sample_ScriptRunnerAgent_DataThunk)(void*);
  55. #define Sample_ScriptRunnerAgentGetData(somSelf) \
  56.    (((somTD_Sample_ScriptRunnerAgent_DataThunk)(Sample_ScriptRunnerAgentClassData.instanceDataToken))(somSelf))
  57.  
  58. /*
  59.  * -- Instance Data Access Macros for use in Method Procedures
  60.  */
  61. #ifdef VARIABLE_MACROS
  62.   #define _fScriptRunnerID (somThis->fScriptRunnerID)
  63. #endif
  64.  
  65.  
  66. /*
  67.  * Trace/Debug macro
  68.  */
  69. #ifndef Sample_ScriptRunnerAgentMethodDebug
  70. #define Sample_ScriptRunnerAgentMethodDebug(c,m) SOMMethodDebug(c,m)
  71. #endif
  72.  
  73. /*
  74.  * -- Method Macros for use in Method Procedures
  75.  */
  76. #ifdef METHOD_MACROS
  77.   #define _InitObject somSelf->InitObject
  78.   #define _HasExtension somSelf->HasExtension
  79.   #define _AcquireExtension somSelf->AcquireExtension
  80.   #define _ReleaseExtension somSelf->ReleaseExtension
  81.   #define _Purge somSelf->Purge
  82.   #define _IsEqualTo somSelf->IsEqualTo
  83.   #define _SubClassResponsibility somSelf->SubClassResponsibility
  84.   #define _somInit somSelf->somInit
  85.   #define _somUninit somSelf->somUninit
  86.   #define _somInit somSelf->somInit
  87.   #define _somUninit somSelf->somUninit
  88.   #define _somDuplicateReference somSelf->somDuplicateReference
  89.   #define _somCompareReference somSelf->somCompareReference
  90.   #define _somRelease somSelf->somRelease
  91.   #define _somFree somSelf->somFree
  92.   #define _somCanDelete somSelf->somCanDelete
  93.   #define _somGetClass somSelf->somGetClass
  94.   #define _somGetClassName somSelf->somGetClassName
  95.   #define _somGetSize somSelf->somGetSize
  96.   #define _somIsA somSelf->somIsA
  97.   #define _somRespondsTo somSelf->somRespondsTo
  98.   #define _somIsInstanceOf somSelf->somIsInstanceOf
  99.   #define _somDispatch somSelf->somDispatch
  100.   #define _somClassDispatch somSelf->somClassDispatch
  101.   #define _somCastObj somSelf->somCastObj
  102.   #define _somResetObj somSelf->somResetObj
  103.   #define _somPrintSelf somSelf->somPrintSelf
  104.   #define _somDumpSelf somSelf->somDumpSelf
  105.   #define _somDumpSelfInt somSelf->somDumpSelfInt
  106.   #define _AcquireScriptRunner somSelf->AcquireScriptRunner
  107.   #define _somInit somSelf->somInit
  108.   #define _somUninit somSelf->somUninit
  109. #endif
  110.  
  111.  
  112. /*
  113.  * Introduced methods
  114.  */
  115.  
  116. /* New Method: AcquireScriptRunner */
  117. SOM_Scope ODExtension*  SOMLINK ScriptRunnerAgent__AcquireScriptRunner(Sample_ScriptRunnerAgent *somSelf, Environment *ev,
  118.         ODDraft* draft);
  119.  
  120. /*
  121.  * Overridden methods
  122.  */
  123.  
  124. /* Overridden method: somInit */
  125. SOM_Scope void  SOMLINK ScriptRunnerAgent__somInit(Sample_ScriptRunnerAgent *somSelf);
  126. SOMEXTERN typedef void   (* SOMLINK somTD_xih_Sample_ScriptRunnerAgent_somInit)(Sample_ScriptRunnerAgent *somSelf);
  127. inline void  SOMLINK Sample_ScriptRunnerAgent_parent_ODObject_somInit(Sample_ScriptRunnerAgent *somSelf)
  128. {
  129.   (void)         (somSelf);
  130. }
  131. /* define a variety of (possibly ambiguous) short forms */
  132. #ifndef SOMGD_pmc_parent_somInit
  133.   #ifdef parent_somInit
  134.     #define SOMGD_pmc_parent_somInit
  135.     #undef parent_somInit
  136.   #else
  137.     #define parent_somInit Sample_ScriptRunnerAgent_parent_ODObject_somInit
  138.   #endif
  139. #endif
  140. #ifndef SOMGD_pmc_parent_ODObject_somInit
  141.   #ifdef parent_ODObject_somInit
  142.     #define SOMGD_pmc_parent_ODObject_somInit
  143.     #undef parent_ODObject_somInit
  144.   #else
  145.     #define parent_ODObject_somInit Sample_ScriptRunnerAgent_parent_ODObject_somInit
  146.   #endif
  147. #endif
  148. #define Sample_ScriptRunnerAgent_parents_somInit(arg0) \
  149.   (void) Sample_ScriptRunnerAgent_parent_ODObject_somInit(arg0)
  150.  
  151. /* Overridden method: somUninit */
  152. SOM_Scope void  SOMLINK ScriptRunnerAgent__somUninit(Sample_ScriptRunnerAgent *somSelf);
  153. SOMEXTERN typedef void   (* SOMLINK somTD_xih_Sample_ScriptRunnerAgent_somUninit)(Sample_ScriptRunnerAgent *somSelf);
  154. inline void  SOMLINK Sample_ScriptRunnerAgent_parent_ODObject_somUninit(Sample_ScriptRunnerAgent *somSelf)
  155. {
  156.   (void)         (somSelf);
  157. }
  158. /* define a variety of (possibly ambiguous) short forms */
  159. #ifndef SOMGD_pmc_parent_somUninit
  160.   #ifdef parent_somUninit
  161.     #define SOMGD_pmc_parent_somUninit
  162.     #undef parent_somUninit
  163.   #else
  164.     #define parent_somUninit Sample_ScriptRunnerAgent_parent_ODObject_somUninit
  165.   #endif
  166. #endif
  167. #ifndef SOMGD_pmc_parent_ODObject_somUninit
  168.   #ifdef parent_ODObject_somUninit
  169.     #define SOMGD_pmc_parent_ODObject_somUninit
  170.     #undef parent_ODObject_somUninit
  171.   #else
  172.     #define parent_ODObject_somUninit Sample_ScriptRunnerAgent_parent_ODObject_somUninit
  173.   #endif
  174. #endif
  175. #define Sample_ScriptRunnerAgent_parents_somUninit(arg0) \
  176.   (void) Sample_ScriptRunnerAgent_parent_ODObject_somUninit(arg0)
  177.  
  178. /*
  179.  * -- Primary Implementation File Support
  180.  */
  181. #if (defined(Sample_ScriptRunnerAgent_Class_Source) || defined(SOM_Module_scriptrunneragent_Source))
  182.  
  183. /*
  184.  * -- The Sample_ScriptRunnerAgent ClassData Structure
  185.  */
  186.  
  187. #if PRAGMA_IMPORT_SUPPORTED
  188. #pragma export list Sample_ScriptRunnerAgentClassData
  189. #endif
  190.  
  191.  
  192. /*
  193.  * -- The Sample_ScriptRunnerAgent Class Ancestor Table
  194.  */
  195. static somClassDataStructure * SOMDLINK Sample_ScriptRunnerAgentClassAncestors [] = {
  196.     (somClassDataStructure*) & ODObjectClassData,    /* parent */
  197.     (somClassDataStructure*) & SOMObjectClassData,    /* ancestor */
  198. };
  199.  
  200.  
  201. /*
  202.  * -- The Sample_ScriptRunnerAgent Override ProcPtr Implementations Table
  203.  */
  204. static somMethodPtr Sample_ScriptRunnerAgentOverrideProcs [] = {
  205.     (somMethodPtr) ScriptRunnerAgent__somInit,    /* override class SOMObject */
  206.     (somMethodPtr) ScriptRunnerAgent__somUninit,    /* override class SOMObject */
  207. };
  208.  
  209.  
  210. static void Sample_ScriptRunnerAgentDLLD ( void ) { }
  211.  
  212.  
  213. /*
  214.  * -- The Sample_ScriptRunnerAgent Static Class Info Master Table
  215.  */
  216. static somStaticClassInfo Sample_ScriptRunnerAgentSCI = {
  217.       70,    /* layout version */
  218.     (somClassDataStructure*)  & Sample_ScriptRunnerAgentClassData,    /* main token table */
  219.       Sample_ScriptRunnerAgentOverrideProcs,    /* override proc implemenations table */
  220.       Sample_ScriptRunnerAgentClassAncestors,    /* ancestor table */
  221.       Sample_ScriptRunnerAgentDLLD,    /* DLLdesignator */
  222.       0,    /* no special procs */
  223.       0,    /* rtci slot */
  224.       0,    /* count slot */
  225.       0,    /* dynamic ancestry */
  226.       0,    /* free */
  227.       0,    /* free */
  228.       0,    /* free */
  229.       0,    /* free */
  230.  
  231. /*
  232.  * -- The Sample_ScriptRunnerAgent Counts Table
  233.  */
  234.     (somStaticClassCounts *)
  235.         "\x00\x00\x00\x01"    /* majorversion */
  236.         "\x00\x00\x00\x01"    /* minorversion */
  237.         "\x00\x00\x00\x01"    /* flags */
  238.             "\x00\x02"    /* type code alignment */
  239.             "\x00\x01"    /* classTokenCount */
  240.             "\x00\x01"    /* numDirectParents */
  241.             "\x00\x00"    /* numMetaClasses */
  242.             "\x00\x01"    /* numOverriddenAncestors */
  243.             "\x00\x00"    /* numMigratedMethods */
  244.             "\x00\x00"    /* numSelectedInherited */
  245.             "\x00\x00"    /* numUnused */
  246.             "\x00\x00"    /* free */
  247.             "\x00\x00"    /* free */
  248.             "\x00\x00"    /* free */
  249.             "\x00"    /* free */
  250.                 ,
  251.  
  252.     {
  253.       "Sample::ScriptRunnerAgent",    /* the class name */
  254.       sizeof (Sample_ScriptRunnerAgentData), /* class instance data size */
  255.  
  256. /*
  257.  * -- The Sample_ScriptRunnerAgent Parent Versions Table
  258.  */
  259.     (somParentVersions *)
  260.         "\x00\x00\x00\x01"    /* majorversion */
  261.         "\x00\x00\x00\x00"    /* minorversion */
  262.                 ,
  263.  
  264.  
  265. /*
  266.  * -- The Sample_ScriptRunnerAgent Token Slot Usage Table
  267.  */
  268.     (somSlotUsage *)
  269.         "",
  270.  
  271.  
  272. /*
  273.  * -- The Sample_ScriptRunnerAgent Method Signature Info
  274.  */
  275.     (somSignatureInfo *)
  276.         "\x03\x0c"    /* AcquireScriptRunner */
  277.              ,
  278.  
  279.  
  280. /*
  281.  * -- The Sample_ScriptRunnerAgent Class Method Names
  282.  */
  283.         "AcquireScriptRunner\0"
  284.             ,
  285.  
  286.  
  287. /*
  288.  * -- The Sample_ScriptRunnerAgent Override Slots Table
  289.  */
  290.     (somOverrideData *)
  291.         "\x00\x01\x00\x02"    /* parent SOMObject has 2 overrides */
  292.             "\x00\x00"    /* somInit */
  293.             "\x00\x01"    /* somUninit */
  294.                 ,
  295.  
  296.       0,    /* no migrated methods table */
  297.       0,    /* no selected inherited */
  298.       0,    /* unused */
  299.  
  300.       0,    /* free */
  301.       0,    /* free */
  302.       0,    /* free */
  303.       0,    /* free */
  304.     },
  305. };
  306.  
  307. /*
  308.  * -- The Sample_ScriptRunnerAgent ClassData Structure
  309.  */
  310. struct Sample_ScriptRunnerAgentClassDataStructure SOMDLINK Sample_ScriptRunnerAgentClassData = {
  311.       0,            /* zero */
  312.     & Sample_ScriptRunnerAgentSCI,        /* SCI link */
  313.       0,            /* instanceDataToken */
  314.       0,            /* reserved */
  315.       0,            /* reserved */
  316.       0,            /* reserved */
  317.     (somMToken) ScriptRunnerAgent__AcquireScriptRunner,    /* AcquireScriptRunner:method */
  318. };
  319.  
  320.  
  321. /*
  322.  * Functions for attributes.
  323.  */
  324.  
  325. /*
  326.  * Macros for initializers/destructors
  327.  */
  328.  
  329. #endif /* Primary Implementation Support */
  330.  
  331. #endif       /* SOM_Sample_ScriptRunnerAgent_xih */
  332.